import service from '@/utils/request'

// @Tags MasterBOMSize
// @Summary 创建MasterBOM-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMSize true "创建MasterBOM-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /masterBOMSize/createMasterBOMSize [post]
export const createMasterBOMSize = (data) => {
  return service({
    url: '/masterBOMSize/createMasterBOMSize',
    method: 'post',
    data
  })
}

// @Tags MasterBOMSize
// @Summary 删除MasterBOM-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMSize true "删除MasterBOM-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBOMSize/deleteMasterBOMSize [delete]
export const deleteMasterBOMSize = (params) => {
  return service({
    url: '/masterBOMSize/deleteMasterBOMSize',
    method: 'delete',
    params
  })
}

// @Tags MasterBOMSize
// @Summary 批量删除MasterBOM-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除MasterBOM-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBOMSize/deleteMasterBOMSize [delete]
export const deleteMasterBOMSizeByIds = (params) => {
  return service({
    url: '/masterBOMSize/deleteMasterBOMSizeByIds',
    method: 'delete',
    params
  })
}

// @Tags MasterBOMSize
// @Summary 更新MasterBOM-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMSize true "更新MasterBOM-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /masterBOMSize/updateMasterBOMSize [put]
export const updateMasterBOMSize = (data) => {
  return service({
    url: '/masterBOMSize/updateMasterBOMSize',
    method: 'put',
    data
  })
}

// @Tags MasterBOMSize
// @Summary 用id查询MasterBOM-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.MasterBOMSize true "用id查询MasterBOM-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /masterBOMSize/findMasterBOMSize [get]
export const findMasterBOMSize = (params) => {
  return service({
    url: '/masterBOMSize/findMasterBOMSize',
    method: 'get',
    params
  })
}

// @Tags MasterBOMSize
// @Summary 分页获取MasterBOM-尺码列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取MasterBOM-尺码列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /masterBOMSize/getMasterBOMSizeList [get]
export const getMasterBOMSizeList = (params) => {
  return service({
    url: '/masterBOMSize/getMasterBOMSizeList',
    method: 'get',
    params
  })
}
